package com.handle.system.api.feign;

import com.handle.common.core.constants.ServiceNameConstants;
import com.handle.common.core.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author zhangqing
 * @version V1.0
 * @description 在这里简单描述该类的作用
 * @date 11/3/2021 3:27 PM
 */
@FeignClient(value = ServiceNameConstants.OAUTH_SERVICE,path = "/oauth")
public interface RemoteOauth2Service {

    /**
     * 获取token
     * @param parameters 参数
     * @return token
     */
    @PostMapping(value = "/token")
    JsonResult getAccessToken(@RequestParam Map<String, String> parameters);
}
